<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>个人中心</title>
    <script src="__INDEX__/js/mui.min.js"></script>
	<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/css/member.css" />	
	<style>
		.mui-table-view-cell {
		    padding: 13px 27px;
   		 } 
	</style>
</head>
<body>
	<div class="mui-content">
	    <div class="mem_top">
	    	<div class="mem_infobox clearfix">
		    	<div class="mem_toux"><img id="touxiang" src="{$user.logo}"></div>
		    	<div class="mem_info">
		    		<p class="mem_name" id="user_name" >{$user.nickname}</p>
		    		<p class="mem_dengji" style="margin-top: 10px;">
		    			等级：<em id="user_type" style="margin-right: 10px;">{$user.name?$user.name : '普通用户'}</em>
		    			ID：<em id="user_type">{$user.id}</em>
		    		</p>	 
		    	</div>
	    	</div> 
	    </div>
	    <div style="position: relative;">
	    	<ul class="walletlis clearfix">
	    		<li id="yj">
	    			<a href="{:url('member/money')}">
	    				<p>余额</p>
	    			    <p>￥<em id="yongjin">{$user.balance ? $user.balance : '0.00'}</em></p>
	    			</a>
	    		</li>
	    		<li id="yu">
	    			<a href="{:url('member/quan')}"><p>房券</p>
	    			<p><em id="yue">{$user.kaquan ? $user.kaquan : 0}</em></p></a>
	    		</li>
	    	</ul>
	    </div>
	   <div class="mem_wallet">
	    	 <ul class="mui-table-view mui-grid-view mui-grid-9">
				<li class="mui-table-view-cell mui-media" >
					<a href="{:url('member/reserve_ct',['status'=>2])}">
						<span class="mui-icon iconfont "><img src="__INDEX__/img/y4.png" style="width: 30px;height:30px;"/></span>
						<div class="mui-media-body">订餐订单</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media" >
					<a href="{:url('member/reserve',['status'=>1])}">
						<span class="mui-icon iconfont "><img src="__INDEX__/img/y5.png" style="width: 30px;height:30px;"/></span>
						<div class="mui-media-body">客房订单</div>
					</a>
				</li>
			</ul>
	    </div>
		<ul class="mui-table-view mem_list">
			{if condition="$user.level_id neq 0" }
			<li class="mui-table-view-cell guanzhu">
		        <a class="mui-navigate-right" href="{:url('member/czcard')}">充值中心</a>
		    </li>
		    {else}
		    <li class="mui-table-view-cell guanzhu">
		        <a class="mui-navigate-right" href="{:url('member/buycard')}">购卡</a>
		    </li>
            {/if}
		    <li class="mui-table-view-cell action">
		        <a class="mui-navigate-right" href="{:url('member/card')}">会员码</a>
		    </li>
		    <li class="mui-table-view-cell address">
		        <a class="mui-navigate-right" href="{:url('member/friends')}">推广中心</a>
		    </li>
		    <li class="mui-table-view-cell">
				<a class="mui-navigate-right" href="{:url('member/memset')}">设置</a>
			</li>
		</ul>
		<!--折扣设置弹出框-->	   
	    <div class="mask">
	    	<div class="mem_zheksz">
	    		<div class="mem_zheknum">
	    			<span>折扣</span>
	    			<span><input type="text" name="" id="" value="" placeholder="0" /></span>
	    			<span>%</span>
	    		</div>
	    		<button type="button" class="mem_zhekbtn">启用鼓励金营销</button>
	    	</div>
	    </div>
	    <!--二维码关注弹出框-->
	    <div class="mask gzgzh_mask">
			<div class="gzgzh"><img src="../images/gzherweima.png"></div>
			<div class="close"><img src="../images/close2.png" onclick="javascript:$('.mask').hide()"></div>
		</div>
	</div>

	
	{include file="public/bottom" /}
	<!--{include file="public/bind_phone" /}-->
</body>
</html>
{include file="public/footer" /}
<script>
	//个人资料
	$(".mem_toux").click(function(){
	    parent.location.href="{:url('index/member/member')}"
	});
</script>




